package com.sny.dao;

import com.sny.model.FileStorageModel;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

/**
 * @Author:yangxupeng
 * @Description:
 * @Date: 2020/7/30 4:57 下午
 * @Modified:
 */
public interface IFileStorageDao extends JpaRepository<FileStorageModel,String>, JpaSpecificationExecutor<FileStorageModel> {
    /**
     * 根据名称查询资源
     * @param name
     * @return
     */
    FileStorageModel findByName(String name);

    /**
     * 根据md5查询数据
     * @param MD5
     * @return
     */
    FileStorageModel findByMD5(String MD5);

    List<FileStorageModel> findByNameIn(List<String> asList);
}
